﻿
    using Chain.BLL;
    using Chain.Model;
    using System;
    using System.Data;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public partial class MemExistCount : PageBase
    {

        private int intMemID;


        private void BindMemCountList()
        {
            if (this.intMemID != 0)
            {
                string strSql = " CountDetailMemID=" + this.intMemID;
                Chain.BLL.MemCountDetail bllMemCount = new Chain.BLL.MemCountDetail();
                DataTable db = bllMemCount.GetQueryMemCountList(strSql).Tables[0];
                this.gvMemCountList.DataSource = db;
                this.gvMemCountList.DataBind();
                PageBase.BindSerialGridView(this.gvMemCountList, false, 0);
                PageBase.BindNullSGridView(this.gvMemCountList);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (base.Request["MemID"] != "")
            {
                this.intMemID = int.Parse(base.Request["MemID"]);
                Chain.BLL.Mem bllMem = new Chain.BLL.Mem();
                Chain.Model.Mem modelMem = new Chain.Model.Mem();
                modelMem = bllMem.GetModel(this.intMemID);
                if (modelMem.MemName != "")
                {
                    this.lblFrmTitle.Text = this.lblFrmTitle.Text + "---" + modelMem.MemName;
                }
            }
            this.BindMemCountList();
        }
    }


